package sameClasses;

import java.io.Serializable;

public class NetworkPacket implements Serializable {
	private int pluginId;
	private int methodenId;
	private User user;
	private Object data;

	public NetworkPacket(NetworkPacket packet) {
		this.user = packet.getUser();
		this.methodenId = packet.getmethodenId();
		this.pluginId = packet.getpluginId();
		this.data = packet.getData();
	}

	public NetworkPacket(User user, int pluginId, int methodenId, Object data) {
		this.user = user;
		this.pluginId = pluginId;
		this.methodenId = methodenId;
		this.data = data;
	}

	public User getUser() {
		return this.user;
	}

	public int getpluginId() {
		return this.pluginId;
	}

	public int getmethodenId() {
		return this.methodenId;
	}

	public Object getData() {
		return this.data;
	}

	public void setData(Object o) {
		this.data = o;
	}
}